package atm;

import javax.swing.*;
import java.awt.*;

/**
 * 存款界面
 */
public class SavePanel extends JPanel {
    private ImageIcon savepane = new ImageIcon("Tu/buttonSave.jpg");
    private JLabel accountLabel = new JLabel("存款");
    private JTextField accountField = new JTextField();
    private Font font = new Font("黑体", Font.BOLD, 30);

    private JButton loginBtn = new JButton(savepane);


    public SavePanel() {
        this.setLayout(null);
        accountLabel.setBounds(300, 200, 120, 50);
        accountLabel.setFont(font);
        accountField.setBounds(400, 200, 250, 50);    //输入空格
        accountLabel.setFont(font);

        loginBtn.setBounds(700, 350, 140, 50);    //按钮


        this.add(accountLabel);
        this.add(accountField);   //输入空格
        this.add(loginBtn);      //按钮


        this.setOpaque(false);
    }
}